<?php
class Zendvn_Filter_Username implements Zend_Filter_Interface{
	
	public function filter($value){
		$filter = new Zend_Filter();
		$filter->addFilter(new Zend_Filter_StringToLower(array('encoding'=>'utf-8')))
				->addFilter(new Zendvn_Filter_Utf8());
		$value = $filter->filter($value);
		return $value;
	}
	
}